﻿using System;
using System.Windows.Forms;
using Microsoft.DirectX;

namespace breakoutsharp
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
			if (Environment.CommandLine.Contains("editor"))
			{
				LevelEditor le;
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);
				Application.Run((le = new LevelEditor()));

				if (le != null)
					le.Dispose();
			}
			else
			{
				/* declare it so we can dispose it afterwards */
				MainForm mf;

				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);
				Application.Run((mf = new MainForm()));

				if (mf != null)
					mf.Dispose();
			}
            
        }
    }
}
